package com.lightsh.sms;

public class SmsInfo { 
	private long mId;
	/**
	 * 短信内容
	 */ 
	private String mSmsbody; 
	/**
	 * 发送短信的电话号码
	 */ 
	private String mPhoneNumber; 
	/**
	 * 发送短信的日期和时间
	 */ 
	private String mDate; 
	/**
	 * 发送短信人的姓名
	 */ 
	private String mName; 
	/**
	 * 短信类型1是接收到的，2是已发出
	 */ 
	private int mType; 
	
	public SmsInfo(long id, String smsBody, String phoneNumber, String date, String name, int type){
		mId = id;
		mSmsbody = smsBody;
		mPhoneNumber = phoneNumber;
		mDate = date;
		mName = name;
		mType = type;
	}
	
	private void setId(long id){
		mId = id;
	}
	public long getId(){
		return mId;
	}
	
	public String getSmsbody() { 
	    return mSmsbody; 
	} 
	
	private void setSmsbody(String smsbody) { 
	    this.mSmsbody = smsbody; 
	} 
	
	public String getPhoneNumber() { 
	    return mPhoneNumber; 
	} 
	
	private void setPhoneNumber(String phoneNumber) { 
	    this.mPhoneNumber = phoneNumber; 
	} 
	
	public String getDate() { 
	    return mDate; 
	} 
	
	private void setDate(String date) { 
	    this.mDate = date; 
	} 
	
	public String getName() { 
	    return mName; 
	} 
	
	private void setName(String name) { 
	    this.mName = name; 
	} 
	
	public int getType() { 
	    return mType; 
	} 
	
	private void setType(int type) { 
	    this.mType = type; 
	}
	public boolean isReceived(){
		return mType == 1;
	}

	@Override
	public String toString() {
		return mId + " | " + mPhoneNumber + " | " + mSmsbody + " | " + mDate + " | " + mName + " | " + mType;
	} 
	
	
} 
